package com.fxwater.biz.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.fxwater.biz.domain.FxwDataInfo;
import com.fxwater.biz.domain.PumpStationInfo;
import com.fxwater.biz.domain.UnitInfo;

public interface PumpStationServiceMapper {
	
	/**
	 * 泵站数据列表
	 * @param fxwDataInfo
	 * @return
	 */
	public List<FxwDataInfo>selectPumpStationInfoDataList(FxwDataInfo fxwDataInfo);
	
	/**
	 * 没有设置告警的泵站
	 * @param pumpStationInfo
	 * @return
	 */
	public List<PumpStationInfo>selectStationNoUseByName(@Param("item") PumpStationInfo pumpStationInfo);
	
	/**
	 * 修改泵站信息
	 * @param pumpStationInfo
	 * @return
	 */
	public int editSavePumpStationInfo(PumpStationInfo pumpStationInfo);
	
	/**
	 * 保存用户和泵站关系
	 * @param pumpId
	 * @param userId
	 * @return
	 */
	public int saveUserPumpStationRelation(@Param("pumpId")Integer pumpId,@Param("userId")Long userId );
	
	/**
	 * 添加泵站
	 * @param pumpStationInfo
	 * @return
	 */
	public int addPumpSatation(PumpStationInfo pumpStationInfo) ;
	
	/**
	 * 删除泵站和用户的绑定关系
	 * @param ids
	 * @return
	 */
	public int removePumpUserRelation(String [] ids);
	
	/**
	 * 删除泵站
	 * @param ids
	 * @return
	 */
	public int removePumpStationInfo(String [] ids);
	
	/**
	 * 泵站列表
	 * @param pumpStationInfo
	 * @return
	 */
	public List<PumpStationInfo>selectPumpStationInfoList(PumpStationInfo pumpStationInfo);

}
